home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / ThinkHelper 1.0b1.sit / ThinkHelper 1.0b1 / •†README FIRST • / •†README FIRST •
Encoding:
Text File  |  1993-08-19  |  2.6 KB  |  83 lines  |  [TEXT/MPS ]

  1. ThinkHelper 1.0b1
  2. © 1993 Steve Zellers
  3. 08/18/93
  4.  
  5. • ThinkHelper 
  6.  
  7.     ThinkHelper adds additional AppleEvent support to the Think Project Manager 
  8.     application.  It does this by patching the TPM application.  The patch contains
  9.     the AppleEvent dispatches, to the Think "PUF" interface - an external interface 
  10.     provided to TPM extensions writers.  In addition, several traps are patched to 
  11.     give even more support.
  12.  
  13.     ThinkHelper is distributed Freely.
  14.     
  15. • ThinkHelper Verbs
  16.  
  17.     closeTargetWindow: closes the frontmost document window
  18.  
  19.     callMenuItem: forces TPM to select the named menu item
  20.  
  21.     setTargetPos: moves the target window to (x,y,x+w,y+h) global coordinates 
  22.  
  23.     getTargetPath: returns an FSSpec of the target (frontmost) window
  24.  
  25.     markSelection: names the selection with a marker
  26.  
  27.     deleteMarker: removes a marker from the file
  28.  
  29.     getMarker: return the start and endpos of a named marker
  30.  
  31.     getAllMarkers: returns a list of all markers
  32.  
  33.     getSelection: returns the start and end pos of the selection
  34.  
  35.     setSelection: sets the text selection in the target window
  36.  
  37.     copySelection: returns the text of the current selection
  38.  
  39.     getWindowText: returns the entire text of the target window
  40.  
  41.     pasteText: inserts the text over the current selection
  42.  
  43. • Source
  44.  
  45.     Is provided - you can extend the existing 'THLP' resource (which contains the
  46.     code) or add one of your own.  The patcher program causes all 'THLP's in the 
  47.     TPM to be loaded.
  48.     
  49. • Installation
  50.  
  51.     1) BACK UP YOUR COPY OF TPM
  52.     
  53.     2) Really, do #1 first
  54.     
  55.     3) Launch the "ThinkHelper Patcher 1.0b1" Application, navigate to the
  56.     copy of TPM that you want to modify, and hit OK.  Hopefully, you'll
  57.     get a cheeky message to the effect that the installation was successful.
  58.     
  59.     4) Copy the "ClassQuery•SMZ" file to your TPM folder - its used in one of 
  60.     the example scripts.
  61.     
  62.     5) Install apps.ThinkHelper and apps.SourceServer in your Frontier.root
  63.     by dbl clicking on them.  The ThinkHelper verb table is of course required,
  64.     and the SourceServer table just plain useful.  (And some of the examples use
  65.     SourceServer)
  66.     
  67.     6) Open a scratch project, and try out some of the commands in 
  68.     ThinkHelper.examples.  Remember that you have to have a document (TEXT) 
  69.     window frontmost in TPM for most of these commands to do anything useful.
  70.     For starters, I'd insert some text, and try moving the window around.
  71.     
  72. • Fun
  73.  
  74.     Have fun and let me know what you think.  I'm not planning on adding
  75.     much more functionality (it does everything _I_ need it to do ;-) but if
  76.     you come up with something you'd like to share (encouraged) I'll roll it
  77.     into the next release.
  78.     
  79. --Steve Zellers
  80. P.O. Box 9606
  81. Berkeley, CA 94709
  82. CIS: 75460,1375
  83.